-- Mostly taken from Trouble in Terrorist Town, credits to Bad King Urgrain.

function GameMsg(msg)
	umsg.Start("game_msg")
	umsg.String(msg)
	umsg.Bool(false)
	umsg.End()
end

function CustomMsg(ply, msg, clr)
	clr = clr or COLOR_WHITE

	umsg.Start("game_msg_color", ply)
	umsg.String(msg)
	umsg.Short(clr.r)
	umsg.Short(clr.g)
	umsg.Short(clr.b)
	umsg.End()
end

function PlayerMsg(ply, msg, zombie)
	umsg.Start("game_msg", ply)
	umsg.String(msg)
	umsg.Bool(zombie)
	umsg.End()
end

function ZombieMsg(ply, msg)
	PlayerMsg(ply, msg, true)
end